package com.dreamlike.demo.HttpUtil.Core.Generator;

import com.dreamlike.demo.HttpUtil.Core.HttpDefinition;

import java.net.http.HttpClient;

public class HttpClientGenerator{


    public HttpClient generateClient(HttpDefinition httpDefinition){
        return HttpClient.newBuilder()
                .version(httpDefinition.getVersion())
                .executor(httpDefinition.getExecutor())
                .build();
    }



}
